﻿using System;
using System.ComponentModel.DataAnnotations;
using K9Nano.Organization;

namespace K9Nano.Application.Organization.Dto
{
    public class OrganizationUnitUpdateInput: DtoBase<Guid>
    {
        /// <summary>
        /// 上级组织ID
        /// </summary>
        [Display(Name = "上级组织ID")]
        public string ParentId { get; set; }

        /// <summary>
        /// 组织名称
        /// </summary>
        [Display(Name = "组织名称")]
        [Required(ErrorMessage = "{0}不能为空")]
        public string DisplayName { get; set; }

        /// <summary>
        /// 组织类型
        /// </summary>
        [Display(Name = "组织类型")]
        public EOrganizationUnitType Type { get; set; }
    }
}